/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package miagemosaik;
import java.io.Serializable;
/**
 *
 * @author Vincent
 */

public class Photo implements Serializable{

	private static final long serialVersionUID = 1L;
	private String name;
	private float r;
    private float g;
    private float b;

    public Photo(float r,float g,float b) {
		this.name = "tmp";
        this.r = r;
        this.g = g;
        this.b = b;
	}


	public Photo(String name, float r,float g,float b) {
		this.name = name;
        this.r = r;
        this.g = g;
        this.b = b;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

    public float getB() {
        return b;
    }

    public void setB(float b) {
        this.b = b;
    }

    public float getG() {
        return g;
    }

    public void setG(float g) {
        this.g = g;
    }

    public float getR() {
        return r;
    }

    public void setR(float r) {
        this.r = r;
    }

	public String toString() {
		return name + " " + r + " " + g + " " + b;
	}

}
